
// this function constrols the cam at the top. 
// runs on its own thread.
// --- responsibility: Nir x 2, Abadi (?).
void main_top (void *param);